package edu.sctu.zcy.month201505.day20150525;

import java.util.SortedMap;
import java.util.TreeMap;

/**
 * Created by user24 on 2015/5/25.
 */
public class SortedMapDemo {

    public static void main(String[] args) {

        SortedMap sortedMap = new TreeMap<>();
        for (int i = 0; i < 5; i++) {

            sortedMap.put("0"+i,"1000"+i);

        }

        System.out.println(sortedMap.keySet());
        System.out.println(sortedMap.values());
        System.out.println(sortedMap.entrySet());
    }
}
